import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import vueSwiper from 'vue-awesome-swiper'  //引入vue-awesome-swiper
import 'swiper/dist/css/swiper.css'  //引入样式
import 'default-passive-events'
// 配置cookie
import cookie from 'vue-cookie'


import App from './App.vue'
// import MyCar from './views/PersonalCenter/MyCar.vue'
import router from './router'
import store from './store'

//引入操作localStorage的文件
import storage from './storage/index' 

import echarts from './util/echartsUi'
Vue.prototype.$echarts = echarts

Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.prototype.$storage = storage;
Vue.prototype.$cookie = cookie; 
Vue.use(vueSwiper)

new Vue({
  router,
  store,
  beforeCreate() {
    //全局事件总线
    Vue.prototype.$bus = this
  },
  render: h => h(App),
  
}).$mount('#app')
